package com.common.project.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
* <p>
    * 用户表
    * </p>
*
* @author jiangshicun
* @since 2019-07-01
*/
@Data
@Accessors(chain = true)
@ApiModel(value="User对象", description="用户表")
@ExcelTarget("User")
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable{

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private Long id;

    @Excel(name = "用户姓名",replace = {"_null"},width = 15.0)
    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @Excel(name = "手机号",replace = {"_null"},width = 15.0)
    @ApiModelProperty(value = "手机号")
    private String iphone;

    @Excel(name = "年龄",replace = {"_null"},width = 15.0)
    @ApiModelProperty(value = "年龄")
    private Integer age;

    @Excel(name = "创建时间",replace = {"_null"},exportFormat = "yyyy-MM-dd",importFormat="yyyy/MM/dd",width = 15.0)
    @ApiModelProperty(value = "创建时间",example = "2019-07-01 00:00:00")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;




}
